package com.duoqin.syncassistant.data.remote;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface RemoteAddContactsApiInterface {
    @POST("upload")
    Call<String> uploadVCard(@Header("version") String version,
                             @Header("timestamp") String timestamp,
                             @Header("auth") String auth,
                             @Body RequestBody vCardBody);

    @GET("get_vcf/{code}")
    Call<ResponseBody> downloadVCard(@Header("timestamp") String timestamp,
                                     @Header("auth") String auth,
                                     @Path("code") String code);

    @GET("delete_vcf/{code}")
    Call<ResponseBody> deleteVCard(@Header("timestamp") String timestamp,
                                   @Header("auth") String auth,
                                   @Path("code") String code);
}